/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.dorian.atomicuml.dao.interfaces;

import com.dorian.atomicuml.orm.Projects;
import com.dorian.atomicuml.orm.UsersProjects;
import java.util.List;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 * @author Ayden
 */
@Transactional(propagation= Propagation.REQUIRED)
public interface UsersProjectManager {
    public boolean addUser(String projectTitle, String email);
    public boolean deleteUsersProjects(int projectId, int usersId);
    public boolean deleteUsersProjects(UsersProjects up);
    public List<Projects> getAllProjectsFromUsersID(int id);
    public List<UsersProjects> getUsersProject(int projectId);
    public boolean isUsersProject(int projectId, int userId);
    
}
